package com.eci.example.feign;

import com.eci.common.asset.core.R;
import com.eci.example.constant.ExampleErrorCode;
import com.eci.example.feign.fallback.ExampleFeignFallBack;
import com.eci.example.vo.ExampleReq;
import com.eci.example.vo.ExampleRsp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = ExampleErrorCode.SYS_CODE+"/except", fallback = ExampleFeignFallBack.class)
public interface ExceptionFeign {
    @PostMapping("/add")
    public R<ExampleRsp> add(ExampleReq req);
}
